<?php

function fenlei($cid)
{
    $category=M('category');
    $list=$category->where("pid=$cid")->select();
    return $list;
}